'use strict';

const Controller = require('egg').Controller;

class MembersController extends Controller {
  async index() {
    const {ctx} = this
    var db =  this.app.mongodb;
    var res = await db.collection("user").find().toArray()
    console.log(res);
    await ctx.render("members",{res})
  }
}

module.exports = MembersController;
